package com.ruoyi.utli.video;

import com.ruoyi.common.utils.StringUtils;

public class ControllingRequest {
	/**
	 * 监控点唯一标识，
	 */
	private String cameraIndexCode;
	/**
	 * 0-开始 1-停止
	 */
	private Integer action;
	/**
	 * 不区分大小写 说明：
	 * LEFT 左转
	 * RIGHT右转
	 * UP 上转
	 * DOWN 下转
	 * ZOOM_IN 焦距变大
	 * ZOOM_OUT 焦距变小
	 * LEFT_UP 左上
	 * LEFT_DOWN 左下
	 * RIGHT_UP 右上
	 * RIGHT_DOWN 右下
	 * FOCUS_NEAR 焦点前移
	 * FOCUS_FAR 焦点后移
	 * IRIS_ENLARGE 光圈扩大
	 * IRIS_REDUCE 光圈缩小
	 * WIPER_SWITCH 接通雨刷开关
	 * START_RECORD_TRACK 开始记录轨迹
	 * STOP_RECORD_TRACK 停止记录轨迹
	 * START_TRACK 开始轨迹
	 * STOP_TRACK 停止轨迹 以下命令presetIndex不可 为空： GOTO_PRESET到预置点
	 */
	private String command;
	/**
	 * 云台速度，取值范围为1-100，默认50
	 */
	private Integer speed;
	/**
	 * 预置点编号，整数，通常在300以内
	 */
	private Integer presetIndex;

	public String getCameraIndexCode() {
		return cameraIndexCode;
	}

	public void setCameraIndexCode(String cameraIndexCode) {
		this.cameraIndexCode = cameraIndexCode;
	}

	public Integer getAction() {
		return action;
	}

	public void setAction(Integer action) {
		this.action = action;
	}

	public String getCommand() {
		return command;
	}

	public void setCommand(String command) {
		this.command = command;
	}

	public Integer getSpeed() {
		return speed;
	}

	public void setSpeed(Integer speed) {
		this.speed = StringUtils.isNotNull(speed)?speed:50;
	}

	public Integer getPresetIndex() {
		return presetIndex;
	}

	public void setPresetIndex(Integer presetIndex) {
		this.presetIndex = StringUtils.isNotNull(presetIndex)?presetIndex:20;
	}
}
